package com.lyrcsoft.application;

import com.lyrcsoft.application.config.AppConfig;
import com.lyrcsoft.application.service.AnyDoServiceImp;
import com.lyrcsoft.application.service.IAnyDoService;
import com.lyrcsoft.application.service.OrderService;
import com.lyrcsoft.application.service.UserService;
import com.lyrcsoft.spring.LyrcSoftApplicationContext;

public class Test {

	public static void main(String[] args) {

		// 创建非懒加载的Bean（目前就只加载单例的，忽略懒加载）
		LyrcSoftApplicationContext applicationContext = new LyrcSoftApplicationContext(AppConfig.class);

		UserService userService = (UserService) applicationContext.getBean("userService");
		System.out.println(userService);
		userService.test();
		//OrderService orderService = (OrderService) applicationContext.getBean("orderService");
		//System.out.println(orderService);
		IAnyDoService anyDoService =  (IAnyDoService)applicationContext.getBean("anyDoService");
		anyDoService.test();

	}
}
